<?php       session_start(); 

?>
<html>
<head>
<title>INTRANET GOTICA</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="style.css" type="text/css" />
<link rel="shortcut icon" href="favicon.ico" />  
</head>
<?php
      if (isset($_SESSION['k_username'])) { ?>
	<frameset id="frmSET" cols="200px,*" frameborder="NO" border="0" framespacing="0"> 
   <frame name="left" scrolling="YES" noresize src="menu.php">
<? if($_SESSION['grupo']==1 || $_SESSION['grupo']==3 || $_SESSION['grupo']==2 || $_SESSION['grupo']==5 ){   ?> 
	<frame name="main" src="index2.php">
	<? } ?>
<? if($_SESSION['grupo']==4){   ?> 
	<frame name="main" src="ordenes.php">
	<? } ?>
</frameset><noframes></noframes>
<body oncontextmenu="return false" >
	<?
	
     }else{
	
?>
<body oncontextmenu="return false" >
<div align="center"><img class="top" src="logo_login.jpg" /></div>
<div id="round1"><div id="container">
 <div id="content" class="column span-14">
<?

echo " <table class=\"one\">   <form action=\"validar_usuario.php\" method=\"post\"> <tr>";
echo "<td>Usuario:</td></tr><tr><td><input type=\"text\" name=\"usuario\" size=\"10\" maxlength=\"10\" />";
echo "<br /></td></tr><tr>" ;
echo "<td>Password:</td></tr><tr><td><input type=\"password\" name=\"password\" size=\"10\" maxlength=\"10\" /> ";
echo "<br /></td></tr><tr>";
echo "<td><input type=\"submit\" value=\"Ingresar\" /></td></tr>";
echo "</form></table>";

      }
   ?>
	</div>
  	</div>
		</div>
</body>
</html>
